package ${basePackage}.service;

import ${basePackage}.model.${modelNameUpperCamel};
import java.util.List;

/**
 * Created by ${author} on ${date}.
 */
public interface ${modelNameUpperCamel}Service {
    /**
     * 新增
     */
    int create(${modelNameUpperCamel} ${modelNameLowerCamel});

    /**
     * 修改
     */
    int update(Long id, ${modelNameUpperCamel} ${modelNameLowerCamel});

    /**
     * 根据ID获取详情
     */
    ${modelNameUpperCamel} getItem(Long id);

    /**
     * 根据ID删除
     */
    int delete(Long id);

    /**
     * 分页查询
     */
    List<${modelNameUpperCamel}> list(${modelNameUpperCamel} ${modelNameLowerCamel}, Integer pageSize, Integer pageNum);
}
